package com.EAsystem.mapper;

import com.EAsystem.entity.College;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface CollegeMapper {

    Page<College> findAllWithPage();

    Page<College> findByNameWithPage(College college);

    void save(College college);

    void delete(Integer id);

    void edit(College college);

    // 批量删除
    void batchDelete(@Param("ids") java.util.List<Integer> ids);
    
    // 根据ID查询学院
    College findById(Integer id);
}
